import React from 'react'
import ThemeContext from './contexts/theme-context'


export default function HomeInfo2() {
  return (
    <div>

      {/* 函数式组件获取Context中的数据 */}
      <ThemeContext.Consumer>
        {
          value => {
            return <div style={value}>HomeInfo2 ThemeContext</div>
          }
        }
      </ThemeContext.Consumer>
    </div>
  )
}
